package com.spring_book.spring_book.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/test")
@RestController
public class TestController {

    @RequestMapping("/t1")
    public String t1(){
        int a  = 10/0;
        return "t1";
    }

    @RequestMapping("/t2")
    public int t2(){
        String aa  = null;
        return aa.length();
    }
    @RequestMapping("/t3")
    public int t3(){
        int[] aaa = {1,2,3};
        int ret = aaa[4];
        return ret;
    }
}
